package com.forekenow.Demo6;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import org.w3c.dom.ls.LSOutput;

public class PersonImplement extends Person{
    @Override
    public boolean login(String name, int password) {
        return true;
    }

    @Override
    public boolean register(String name, int password) {
        return false;
    }

    @Override
    public Person getPersonById(String id) {
        return null;
    }

    @Override
    public Person[] getAll() {
        return new Person[0];
    }

    @Override
    public int deleteById(String id) {
        return 1;
    }

    public static void main(String[] args) {
        Person person = new PersonImplement();
        boolean isRight = person.login("tom", 123456);
        if (isRight){
            System.out.println("登录成功······");
        }else {
            System.out.println("登录失败······");
        }
        int i = person.deleteById("100");
        if (i == 1){
            System.out.println("删除成功");
        }else {
            System.out.println("删除失败");
        }
    }
}
